package com.ly.hotel.util;

import com.ly.hotel.view.common.MyProcessDialog;

import android.content.Context;


/**
 * @author Administrator
 * 显示有个友好的等待窗口
 */
public class ProcessWaitingUtil {

	public static MyProcessDialog processDialog = null;
	
	public static void showProcessDialog(Context c ,String str, int timeout) {
		if(processDialog != null ){
			processDialog.closeProgressDialog();
		}
		
		try{
			processDialog = new MyProcessDialog(c, str, timeout);
			processDialog.showProgressDialog();
		}catch(Exception e){
			
		}
	}
	
	public static void closeProcessDialog() {
		try{
			if(processDialog != null ){
				processDialog.closeProgressDialog();
				processDialog = null;
			}		
		}catch(Exception e){
				
		}
	}
	
}
